home *** CD-ROM | disk | FTP | other *** search
- # Written by DokFLeed <dokfleed at dokfleed.net>
- # Looking for smency.nsf Trend/Lotus
- #
- if(description)
- {
- script_version ("$Revision: 1.4 $");
- script_id(14312);
- script_bugtraq_id(11612);
- script_name(english:"ScanMail file check");
- desc["english"] =
- "This script attempts to read sensitive files used by Trend ScanMail,
- an anti-virus protection program for Domino (formerly Lotus Notes).
- An attacker, exploiting this flaw, may gain access to confidential
- data or disable the anti-virus protection.
-
- Risk : Medium";
-
- script_description(english:desc["english"]);
- script_summary(english:"Checks for the presence ScanMail files");
- script_category(ACT_GATHER_INFO);
- script_family(english:"CGI abuses");
- script_copyright(english:"This script is Copyright (C) 2004 by DokFLeed");
- script_dependencie("find_service.nes", "http_version.nasl");
- script_require_ports("Services/www", 80);
- exit(0);
- }
-
- # Start of Code
- include("http_func.inc");
- include("http_keepalive.inc");
-
- port = get_http_port(default:80);
-
- if (!get_port_state(port)) exit(0);
-
- if (http_is_dead(port:port)) exit(0);
-
- files = make_array("/smency.nsf" , "Encyclopedia",
- "/smconf.nsf" , "Configuration",
- "/smhelp.nsf" , "Help",
- "/smftypes.nsf" , "File Types",
- "/smmsg.nsf" , "Messages",
- "/smquar.nsf" , "Quarantine",
- "/smtime.nsf" , "Scheduler",
- "/smsmvlog.nsf" , "Log",
- "/smadmr5.nsf" , "Admin Add-in");
- report = "";
- foreach path (keys(files))
- {
- req = http_get(item:path, port:port);
- r = http_keepalive_send_recv(port:port, data:req);
-
- if (r == NULL) exit(0);
-
- if ("Trend ScanMail" >< r)
- {
- if (!report)
- {
- report =
- "Sensitive files used by Trend ScanMail, an anti-virus protection
- program for Domino (formerly Lotus Notes), are readable via the web.
- These files might expose confidential data or allow an attacker to
- disable the anti-virus protection.
-
- Solution: Password protect access to these files.
-
- The following files were found:
- ";
- }
- report += string("\n ", path, " - ", files[path]);
- }
- }
- if (report) security_warning(port:port, data:report);
-